#!/bin/bash

if [ -z $1 ];
then
        echo "error, exp: $0 program_name"
        echo " "
        exit
fi

echo $0 $1

Name=$1

PID=$(ps -aux |grep ${Name} | awk '{print $2 }')
#echo ${PID}
#echo ${PID} > temp


if [ -n "${PID}" ];
then
        echo ${PID}
        sudo kill ${PID}
#else

fi